﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="view_pessoa.aspx.cs" Inherits="ControleCaixa.view_pessoa" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <style>
        #divPainel {
            margin: 20px;
            border-radius: 5px;
            background-color: #CCCCCC;
            box-shadow: 5px 5px 15px #CCE;
            padding: 20px;
            text-align: center;
            width: 92%;
            height: calc(100% - 170px);
            position: fixed;
        }

        .text {
            border-radius: 3px;
        }

        .Button {
            background: -moz-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #646464), color-stop(100%, #4a4a4a));
            background: -webkit-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: -o-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: -ms-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: linear-gradient(to bottom, #646464 0%, #4a4a4a 100%);
            filter: progid:dximagetransform.microsoft.gradient(startColorstr='#646464', endColorstr='#4a4a4a', GradientType=0);
            filter: none;
            border-radius: 5px;
            -moz-border-radius: 5px;
            -webkit-border-radius: 5px;
            border-left: 1px solid #5d5d5d;
            box-shadow: inset 0 0 0 1px #8a8a8a;
            -moz-box-shadow: inset 0 0 0 1px #8a8a8a;
            -webkit-box-shadow: inset 0 0 0 1px #8a8a8a;
            background: #4a4a4a url(/Imagens/grad_dark.png) repeat-x left top;
            background: -moz-linear-gradient(top, #8a8a8a 0%, #707070 50%, #626262 51%, #787878 100%);
            background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #8a8a8a), color-stop(50%, #707070), color-stop(51%, #626262), color-stop(100%, #787878));
            background: -webkit-linear-gradient(top, #8a8a8a 0%, #707070 50%, #626262 51%, #787878 100%);
            background: -o-linear-gradient(top, #8a8a8a 0%, #707070 50%, #626262 51%, #787878 100%);
            background: -ms-linear-gradient(top, #8a8a8a 0%, #707070 50%, #626262 51%, #787878 100%);
            background: linear-gradient(to bottom, #8a8a8a 0%, #707070 50%, #626262 51%, #787878 100%);
            filter: progid:dximagetransform.microsoft.gradient(startColorstr='#8a8a8a', endColorstr='#787878', GradientType=0);
            border-bottom: 1px solid #5d5d5d;
            border-top: 1px solid #5d5d5d;
            border-right: 1px solid #5d5d5d;
            line-height: 29px;
            padding: 0 30px;
            filter: none;
        }

        .grid {
            width: 70%;
            height: calc(100% - 300px);
            border-radius: 10px;
            position: relative;
            border-radius: 10px;
            margin-left: 15%;
            background: -moz-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #646464), color-stop(100%, #4a4a4a));
            background: -webkit-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: -o-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: -ms-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: linear-gradient(to bottom, #646464 0%, #4a4a4a 100%);
        }

        .gridFooter {
        }

        .gridHeader {
        }

        .gridRow {
        }

        .erro {
            color: red;
        }

        .grd_edite {
            background: url(../images/icon_edit.png) no-repeat center center;
        }

        .grd_delete {
            background: url(../images/icon_cross.png) no-repeat center center;
        }
    </style>
    <asp:ScriptManager ID="sc" runat="server">
    </asp:ScriptManager>
    <div id="divPainel">
        <h3>Consulta Cliente</h3>
        <br>
            <asp:Label ID="nome" runat="server">Nome:</asp:Label>
            <asp:TextBox ID="txtNome" CssClass="text" runat="server" MaxLength="255"></asp:TextBox>
            <asp:Button ID="btnPesquisa" CssClass="Button" runat="server" Text="Pesquisa" OnClick="btnPesquisa_Click" />
            <br>
                <br></br>
                <br>
                    <br>
                        <p id="mensagem" runat="server" class="erro">
                        </p>
                        <asp:GridView ID="gridCliente" runat="server" AutoGenerateColumns="false" CssClass="grid"
                            EmptyDataText="Realize sua Pesquisa">
                            <FooterStyle CssClass="gridFooter" />
                            <HeaderStyle CssClass="gridHeader" />
                            <RowStyle CssClass="gridRow" />
                            <Columns>
                                <asp:BoundField DataField="pessoaId" HeaderText="Código" Visible="false" />
                                <asp:BoundField DataField="nome" HeaderText="Nome" />
                                <asp:BoundField DataField="email" HeaderText="E-mail" />
                                <asp:BoundField DataField="cpf" HeaderText="CPF" />
                                <asp:BoundField DataField="telefone" HeaderText="Telefone" />
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:ImageButton ID="btnEdit" runat="server" CommandArgument='<%# Eval("PessoaId") %>'
                                            CommandName="Edit" CssClass="grd_edite" OnCommand="btnEdit_Command" OnClick="btnEdit_Click1" />
                                    </ItemTemplate>
                                </asp:TemplateField>

                            </Columns>
                        </asp:GridView>
                        <br></br>
                        <br></br>
                        <br></br>
                    </br>
                </br>
            </br>
        </br>
    </div>
</asp:Content>
